Remove unsupported docker-image field from cache-memory schema#3597
Merged
Conversation
The docker-image field was defined in the JSON schema but not implemented in the Go parser (CacheMemoryEntry struct). This caused a mismatch where users could configure docker-image in their workflows, but the setting was silently ignored. Per @pelikhan's directive, removing the field from the schema to align with the actual implementation rather than implementing the feature. Changes: - Removed docker-image property from cache-memory object schema - Schema now correctly reflects supported fields: key, description, retention-days - Validation now properly rejects docker-image configuration - All existing tests pass Testing: - Verified schema rejects docker-image field with clear error message - Verified valid cache-memory configurations still work (object and array notation) - All unit tests pass (make test) - All linting passes (make lint) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Complete removal of the docker-image field from cache-memory configuration: 1. Removed from included_file_schema.json (used for imported workflow files) 2. Updated schema_test.go: - Changed "all options" test to use valid fields only (key, retention-days, description) - Added explicit test case to verify docker-image is rejected - Fixed error message assertion for included file schema 3. Removed from documentation (frontmatter-full.md) All changes ensure schema and parser are fully aligned: - Both main and included file schemas reject docker-image - Tests verify rejection with appropriate error messages - Documentation no longer advertises unsupported feature Verification: ✅ Schema rejects docker-image with clear error: "additional properties 'docker-image' not allowed" ✅ All unit tests pass (make test) ✅ All linting passes (make lint) ✅ Manual compilation tests confirm rejection works Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix critical schema-parser mismatch for cache-memory docker-image
Remove unsupported docker-image field from cache-memory schema
Nov 11, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR resolves a schema-parser mismatch by removing the docker-image field from cache-memory schemas. The field was defined in the JSON schemas but never implemented in the Go parser (CacheMemoryEntry struct), causing user configurations to be silently ignored.
Key Changes:
- Removed
docker-imageproperty definition from both schema files - Added validation test to ensure
docker-imageis properly rejected - Updated existing test to use only implemented fields (
descriptioninstead ofdocker-image) - Updated documentation to remove references to the unsupported field
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/parser/schemas/main_workflow_schema.json | Removed docker-image property from cache-memory object schema definition |
| pkg/parser/schemas/included_file_schema.json | Removed docker-image property from cache-memory object schema definition |
| pkg/parser/schema_test.go | Added test for docker-image rejection; updated existing test to use implemented fields only |
| docs/src/content/docs/reference/frontmatter-full.md | Removed docker-image documentation from cache-memory section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
docker-imagefield was defined in cache-memory schemas but not implemented in the parser, causing user configurations to be silently ignored.Changes
docker-imageproperty from bothmain_workflow_schema.jsonandincluded_file_schema.jsonResult
Schema now correctly rejects unsupported field:
Resolves schema-parser mismatch per #3589.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.